package com.ryskoo.controller.basicdata;

import com.ryskoo.basicdata.area.street.domain.StreetPO;
import com.ryskoo.basicdata.area.street.service.IStreetService;
import com.ryskoo.framework.core.controller.BasicHandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 地区-乡镇街道管理
 * @author qyc
 */
@Controller
@RequestMapping("/vendor/basicdata/area/street")
public class StreetController extends BasicHandler<StreetPO> {

    private static final String TEMPLATE_PATH = "system/basicdata/area/street";

    private static final String MODULE_NAME = "Street";

    private IStreetService streetService;

    /**
     * 消费者注入
     *
     * @param StreetConsumer 消费者基类
     */
    @Autowired
    protected void setService(IStreetService streetService) {
        this.streetService = streetService;
        super.setService(streetService);
    }

    public StreetController() {
        super(TEMPLATE_PATH, MODULE_NAME);
    }
}
